'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up (queryInterface, Sequelize) {

    const Wenzhang = [];
    const counts = 100;
    for(let i=1;i<=counts;i++){
      const wenzhang = {
        title:"文章的标题"+i,
        content:"文章内容"+i,
        createdAt:new Date(),
        updatedAt:new Date(),
      }
      Wenzhang.push(wenzhang)
    }
    await queryInterface.bulkInsert('wenzhangs',Wenzhang,{})
  },
  async down (queryInterface, Sequelize) {

    await queryInterface.bulkDelete('wenzhangs', null, {});
  }
};
